<%--
  Created by IntelliJ IDEA.
  User: 22954
  Date: 2024/8/29
  Time: 14:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>加法计算器</title>
</head>
<body>
<%--JSP中,在'<% %>'标签内,可以写java代码--%>
<%
    int a = 2;
    int b = 3;
    int sum = a + b;
    String s = a + " + " + b + " = " + sum;
    out.print(s);
%>
</body>
</html>
